package com.factory_static;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.AbstractXmlApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class main {
    public static void main(String[] args) {
        ApplicationContext context= new ClassPathXmlApplicationContext("classpath:applicationContext.xml");
        User user= (User) context.getBean("factory_shili_user");
        System.out.println(user);
    }
}
